package online.heycm.multipledb.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

@Component
@PropertySource("classpath:datasource.properties")
@Data
public class LogisticsDBProperties {

    @Value("${logistics.datasource.driver-class-name}")
    private String driverClassName;

    @Value("${logistics.datasource.url}")
    private String url;

    @Value("${logistics.datasource.username}")
    private String username;

    @Value("${logistics.datasource.password}")
    private String password;

    @Value("${logistics.datasource.pool-name}")
    private String poolName;
}
